//
//  AdView.h
//  LoveAdSDK
//
//  Created by kingxt on 12/13/17.
//  Copyright © 2017 liao. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, AdType) {
    AdTypeBannder = 0,
    AdTypeWindow = 1
};

@interface AdView : UIView

+ (NSString *)fixUrl:(NSString *)url;

@property (nonatomic, copy) dispatch_block_t willRemovedFromSuperViewOnLoadAdError;
@property (nonatomic, copy) dispatch_block_t onLoadAdCallback;

- (instancetype)initWithFrame:(CGRect)frame type:(AdType)type appId:(NSString *)appId;

@end
